<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8">

		<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
		Remove this if you use the .htaccess -->
		<meta name="viewport" content="width=device-width; initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit">
		<!-- 360高速模式-->
		<meta name="description" content="bootstrap基本模板">
		<meta name="author" content="chengt01">
		<meta name="keywords" content="bootstrap,html5,css3">
		<title>index</title>
		<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../styles/site.css"/>
		<!--[if lt IE 9]>
		<script src="../scripts/html5.min.js"></script>
		<script src="../scripts/respond.min.js"></script>
		<![endif]-->
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="../bootstrap/js/bootstrap.js"></script>
		<script type="text/javascript" src="../scripts/angular-1.4.0.min.js"></script>
		<script type="text/javascript" src="../js/controller.js"></script>
		<script type="text/javascript" src="../js/module.js"></script>
	</head>

	<body class="container">
		<header class="page-header visible-sm visible-md">
			<h1>index<small>Day01</small></h1>
		</header>

		<section>
			<!-- <div ng-app="appTest">
				<div data-ng-controller="testCtrl">
					{{msg}}
				</div>
			</div> -->
			<div ng-app="appBook">
				<div data-ng-controller="testCtrl">
					<div class="lead">{{msg}}</div>
					
					<div data-ng-controller="bookCtrl">
						<div class="row">
							<div class="col-sm-4 col-sm-offset-8">
								<input data-ng-model="Title" class="form-control" type="search" placeholder="Enter title"/>
							</div>
						</div>
						<table class="table table-hover">
							<tr class="success">
								<td>Id</td>
								<td>Title</td>
								<td>Author</td>
								<td>Price</td>
								<td>Pubdate</td>
								<td>Category</td>
							</tr>
							<tr   data-ng-repeat="b in books|filter:Title|orderBy:['Title','Author']">
								<td >{{b.Id}}</td>
								<td>{{b.Title|lowercase}}</td>
								<td>{{b.Author|uppercase}}</td>
								<td>{{b.Price|currency:"￥"}}</td>
								<td>{{b.PubDate|date:"yyyy年MM月dd日"}}</td>
								<td>{{b.Category.Name}}</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</section>

		<footer class="navbar-fixed-bottom label-info text-center">
			<p>
				Copyright  &copy;
				<abbr title="tarnna">hajiang</abbr>&trade; 2015
			</p>
		</footer>

	</body>
</html>
